<?php

namespace app\common\model;

/**
 * [GoodsOption  商品规格表]
 * @author [C。]
 * @return html
 */
class GoodsOption extends Base
{
    protected $name = 'goods_option';
    /**
     * 根据搜索条件获取列表信息
     */
    public function getMin($map,$field='*')
    {
        $result = $this->field($field)
            ->where($map)
            ->min('marketprice');

        return $result;
    }
}